package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.Apply;
import cn.wolfcode.trip.base.mapper.ApplyMapper;
import cn.wolfcode.trip.base.service.IApplyService;
import cn.wolfcode.trip.base.util.UserContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class ApplyServiceImpl implements IApplyService {

    @Autowired
    private ApplyMapper applyMapper;


    @Override
    public void insert(Apply apply) {
        apply.setUser(UserContext.getCurrentUser());
        applyMapper.insert(apply);
    }
}
